package cn.bjit.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author yx
 * @since 2022-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("coupon_record")
public class CouponRecordDO implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //优惠券id
    private Long couponId;
    //创建时间获得时间
    private Date createTime;
    //使用状态  可用 NEW,已使用USED,过期 EXPIRED;
    private String useState;
    //用户id
    private Long userId;
    //用户昵称
    private String userName;
    //优惠券标题
    private String couponTitle;
    //开始时间
    private Date startTime;
    //结束时间
    private Date endTime;
    //订单id
    private Long orderId;
    //抵扣价格
    private BigDecimal price;
    //满多少才可以使用
    private BigDecimal conditionPrice;


}
